package com.ashapo.pattern.pattern010decorator;

//第3步
//创建实现Shape接口的抽象装饰器类。

public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape){
        this.decoratedShape = decoratedShape;
    }

    public void draw(){
        decoratedShape.draw();
    }
}